package xyz.keyon.service;

import xyz.keyon.bean.Student;

import java.util.List;

public interface IStudentService {
    //增加学生
    public boolean addStudent(Student student);
    //根据学号删除学生
    public boolean deleteStudent(String Sno);
    //查询所有学生
    public List<Student> queryAllStudents();
    //根据学号查询单个学生
    public Student queryStudentBySno(String Sno);
    //根据学号修改学生
    public boolean updateStudentBySno(Student student);
    //查询当前页的数据
    public List<Student> queryStudentsByPage(int currentPage, int pageSize);
    //查询学生表的记录总数
    public int getTotalCount();
}
